<?php

header("Content-Type: text/html; charset=utf-8");

require_once(dirname(__FILE__) . '/' . 'IGt.Push.php');

//http的域名
define('HOST','http://sdk.open.api.igexin.com/apiex.htm');

//https的域名
//define('HOST','https://api.getui.com/apiex.htm');

//采用"PHP SDK 快速入门"， "第二步 获取访问凭证 "中获得的应用配置             
define('APPKEY','CXlLHnuuVWAvK7SRGD4w68');
define('APPID','8IxcBRs4N87tLip44UjliA');
define('MASTERSECRET','GmeV411Zyd8j4uEOqSxtL');


getPushMessageResultDemo();

function getPushMessageResultDemo(){


//    putenv("gexin_default_domainurl=http://183.129.161.174:8006/apiex.htm");

        $igt = new IGeTui(HOST,APPKEY,MASTERSECRET);

        $ret = $igt->queryAppUserDataByDate(APPID,"20180201");
    	
        echo "<pre>";

    	var_dump($ret);

}

?>